package com.xxx.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author jh
 * @since 2025-08-30
 */
@TableName("t_menu")
@Data
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String sn;
    private String name;
    private String icon;
    private String url;
    private String intro;
    @TableField("parent_id")
    private Long parentId;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
